<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Banner/index')}">滚动图表</a></li>
        <li class="active"><a href="{:url('Banner/add')}">滚动图添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Banner/addPost')}">
        <div class="form-group">
            <label for="input-title" class="col-sm-2 control-label">滚动图名称<span class="form-required">*</span></label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-title" name="banner_name">
            </div>
        </div>
        <div class="form-group">
            <label for="input-image" class="col-sm-2 control-label">滚动图图片</label>
            <div class="col-md-6 col-sm-10">
                <input id="photo-1" type="hidden" name="banner_image" >
                <input id="photo-1-name" type="text"  title="图片名称" readonly disabled>
                <img id="input-image" style="width: 50px" >
                <a href="javascript:uploadOneImage('图片上传','#photo-1');" class="btn-primary btn">上传</a>
            </div>
        </div>
        <div class="form-group">
            <label for="input-url" class="col-sm-2 control-label">滚动图地址<span class="form-required">*</span></label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-url" name="banner_url">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    var editorcontent = new baidu.editor.ui.Editor();
    editorcontent.render('content');
</script>
</body>
</html>